added config and DB init callback.