Update db.php

escaped limit to int