removed the db check in
fixed the typo