add sqlite3 module
Added function to store data into sqlite3 database.  This function will store more persistent data.
add data to database every midnight