Fixed typo in database insertion