Make database work as deployed servlet (hopefully)