this time small fixes for postgresql schema definition