Remove magic number in middleware

Remove max big int references in Middleware as that is now the
default in the DB. If no limit is required pass either null or
an empty string as parameter to the stored proc