Update nzedb to php database object, start adding in support for postgresql.