change db to app4am, and add topicId null initial value