'Inserts song in the database and returns the ID of the inserted record.'

def insert_song(self, songname, file_hash):

    with self.cursor() as cur:
        cur.execute(self.INSERT_SONG, (songname, file_hash))
        return cur.lastrowid
