added delete method
fix sql syntax