fix bug for db path