simple database CRUD using C