Fixed the insert query.