add reset method, store lastID in database
Move SQLitedatabase configure to app.configure
resolved conflics