more flexible testing of database size