Fix SQL error with empty database

Call to api/browse/new fails with sqlalchemy.exc.DataError: OFFSET cannot be negative
Merge pull request #75 from ROMB/patch-1

Fix SQL error with empty database