Work on database