database: fixing foodcritic warnings