Database: fixed applyLimit() in drivers