Delete maindb