removed db access from home controller