finished database interaction.  Started work on trainer.