Update registration.php

Optimization of simple db queries that do not require excessive escaping for simple and direct data retrieval.