added postgresql schema support