Gets device info on startup and saves it to SQLite