Pulls and fills fields with data from database.