Improve postgres recognition