Fixed the printing bug for the last column as well.
get_doctor_id no longer creates a view. Added a function to fetchall
and then append the names of the columns to the beginning of the
table.