Integrate SQLite and add edit save function