database and admin setup