Testing db last/first issue