added html template and database auth