loading gm log from database