cursor.execute('INSERT INTO chat (ID, Time, Nick, Message) VALUES (\'' + linenumber\ + '\', \'' + line[0:5] + '\', \'1\', \'' + line[(len(line.split(' ')[1]) + 7):-1]\ + '\')')