Moved away from MySQL command RAND as it doesn't exist in SQLite.