Fix syntax error and fix to run migration after symlinking db config