add sqlite3 lib to flags in Makefile
add in some corrections from cpplint
add more functions