code refactoring: addTopic and addUser now receives User and Topic as
input parameter
add method getLastId in Topic and User Repository