Make single servlet and improve database connection management