Run query to database query lfguild