Add Decimal support

In one of my projects I was trying to insert data that has a `Decimal` type and was running into exceptions. This pull request fixes the exceptions.