Added Functionality

Added functionality to set values from the database into the approriate
fields