attempting to get web template to access database