Added dev/prod switch for sqlite and pg