some work on DB