Implementing the Database version of RegistraionStore.java