basic CRUD sql implemented