zendframework 2 boiler codes for a login and some database actions