Initial config and DB setup