rename transaction and cursor opening functions; improve docs
close_db and drop_db are unsafe
open and create databases in transaction