Database update, fixed the find function