modify buildDB