Use custom table name

Use table name from SqlSession
Added tests to custom table name

Don't use Rails 4.0.0

Added upper bound on rails dependencies