change oauth server to work with postgres