main module is now postgre friendly