0 instead of null database as default parameter for constructor