Added deleteDatabase, fixed the return value of put and ignored .swp file

Sorry about having all these fixes in one pull if you want me to split them up it's fine.