Fixed issue with db.