add invest event sql script