move the sqlite interface to utils
update
small fix