adapted model for sqlite, edit_page should work now