I have seen the error of my ways.. trying to get a topic id before it gets inserted into the database is definitely not going to work.