changed db type to postgres