Fixed the DB build issue when using localdb