Database model created

Created and fixed logical db model