changed database from sqlite to postgres, added staging env