Now uses sqlite database

fix #1