updated the db to switch between postgres and sqllite