Fix for a Postgre DB