Update some library and moved SQLite db to app working dir

Signed-off-by: Marco Sbragi <m.sbragi@gmail.com>