Finilized Server and added test classes (Database and server)