taking care of pg vs sqllite