removed unneeded namespace
fixed docblocks and removed whitespaces
removed unused $key variable and semicolon
pass name to db connection.
fix argument order.
fix bug with eager loading.