Updated mySQL syntax. Fixed database updatePullStatus query.