doing some work on db