base definition and er diagram added