use postgresql on the server side