updated getMoves with database changes.