fix worong and missing dbtype parameter for postgres