Add SQLite test code
Added SQLite testcode.
Modified model, implementation, and database interaction.