added some schema functions and comment routes