fixing stuff to alter tables