Getting started with Homework part 3
Renamed init listener, added DB stuff