Moving the database from config xml into application.