implemented local backup for database; added generic.html to handle util functions without a dedicated view