changed table layout; created messages database