Syncronize db before starting express