add get_column_names method

Added a way to get a table's column names using a select query.