the beginning of gui, SQLite implemented