final db-builder. will update once full-year test successful