bugs save to db