Changes to show deals on search page + fix for postgresql error