changed database records now using utime and datetime() functions in db.
added proper sqlite3 error checking .. up to now just checking if sqlite3 gets dbname not checking errors
need to finish this proper error checking in all code but it is a start for now!