using postgres in production and thin