Added initial database code and a few misc. classes (panels, models).