Use sqlite3
Disable sqlite3 for heroku
Fixed bugs of New function