Added validations and relations to each of the 5 databases