separated database & router stuff