back-end and front-end fixes

REST Controllers
Transfer SQL queries to properties
RowMapper for transaction
Template loading fix: once for page
Fix for status change view