added schema and migrate tables