Added dbConnection + comments

- Deleted some unneeded code