Changed the dbapi so that it loads the local config too