Add smallfiles support

Add support for the smallfiles flag that enables creation of smaller initial database files