added sanity checks for incoming data on socket create
removed and_, or_ import
removed unnecessary import
added test.db
drop all tables on init_db(); moved database to local directory
fixed sqlite path
added example commit