switch to use postgres database