add number type casting

- needed for mongo really so numbers get stored correctly when using the
blueprints in Sails
add casting to each query that writes data