add orderByObject function, remove db file