Change bug in Routing

Please to also add sql to create the table, have not checked the ones in comments, since I have created my table manually