fixed typo in db foreignkey