simplify code that calculates the last inserted ID
Add scrpt to automate running the tests
Merge branch 'fix_rails_test_errors' of github.com:ccouzens/activerecord-sqlanywhere-adapter into fix_rails_test_errors