Post1:
Because there is no representation for fixed length numbers, the leading 0 gets dropped.
Post 2:
You can do this simply by using the limit clause in the sql statement
select * from table limit 1
would bring back one row. You can include hidden field to indicate the next row to fetch. Get the field value and use the where clause to get that data from the db