moved tables into correct database