Added classes for all database entities.

Organized like a mad man