Database Initialization and Migration Engine