CRUD through db and file