ubit
fixed rides array undefined when db is empty