changed some functions to use EF
added latest threads to dashboard
fixed a bug in latest threads list