Transition to sqlite instead of postgres