Sqlite crud using class