Codegen kinda working from PostGreSQL DB