Added code to add the admin tables if they do not already exist.