Add create/update/delete methods, fix some warnings