updated server db to be singleton