implemented generic "add" method that puts information into the
database.