updated localdb to be more oo