add function to check if a table's column exists

Function to check if a column in a DB exists and also has the ability to add the column if not