Two python script interacting with sqlite3 as homework