add building table & related db ops