Fixed typo on db Instantiation