+ added generic mysql connect function
~ fixed errors when variable was empty
~ provided a default value for the routing feature