added db-config funtionality to core