Fixes for times when database key is lacking.