First Pull request for code review - Registration, User Log in, Pagination

you can directly do this
```$row = $db->row('SELECT * FROM thread WHERE id = ?', array($id));```