Update db.php

added start, limit to get_all_rows