safety checks when db is empty