made postgre compatible