builds db