migration db connection to init file