get user information from database in the log view