almost there with the database configuration queries