Avoid timestamp casted to string

Fixes a potentially ugly int->string conversion due to PDO MAX_INT limit