Onboot added; query implemented on SQLite