don't break when db empty