database config and init route