Changed the database query.

Things are broken, so this is for testing between devices.