front-end prototypes, successful db connection, handled some scenarios in generic controller