added database to python program
updating database
Write operations statistics get recorded in the database