Converts to postgresql