Removed use of Anonymous class when establishing a connection to a database via ActiveRecord since this is no longer supported in ActiveRecord 4.