Automatic scaling of database

This feature branch allows a database to grow dynamically as more data is inserted.