database reset and controllers setup