Moved register decorator from Database to module

Now takes database as an argument