Store routing resource graph to mysql database