changed method format
added a test in the postgres_adapter_test.rb file for testing the connection.valid_types check