Adding transaction support

* Implement Database#begin_transaction, Database#commit and
Database#rollback

* Implement Database#new for not in memory databases

* Change return value of Database#store

* Implement Database#close