setup has been moved into controller class, which is now not hardcoded and takes values from input form.
implemented generic dao for create update delete and getbyid