fixed some bugs&&added alembic