MVC approach of SQLite