Add Tables, Implemented Resgister Function