Database migration framework for node