implemented database, and servlet for receiving upload