limited the max size of the database