Server DB wrapper, better Rakefile, license, other fixes