init admin and db config