create tables sql cleaned up