Database base object created

Also changed the config hierarchy slightly along with adding the base database object.