Checks size of db