pre db build