Some initial config and db connection