ignoring database commits while empty