added database and photo submission form