user behavior analysis based on database