finished server/db, still not tested