updated for missing db