changed db config to cfg1.database