improved sql and movement pages