native mongodb
modified to use database