SQL statement inserting - need to figure out namespace_id