node.js and mongoose/mongodb - simple database reading/writing (banning ips)

I am trying to add a database to my node app.

I want to create a database of every ip address that touches my app, and i want to assign them all a "status", by default it should be 0. I DON'T need to know how to get the ips, i already have a method, i just need to figure out how to build the db and read/write/update it.

ipaddr database - ip:address status:0|1

I need to be able to "write" to the database, putting in an IP / default status 0.

I want to be able to "update" the database, based on the IP address, and set it's status to 1 instead of the default 0, if need be.

I then want to be able to "query" the database based on the IP address, and check to see it's status, if it's 0 - everything is fine, if it's 1 - the user is considered "banned".

I already have a mongo database setup and i've already tested inserting and such, and the data is there on the db server, i just want to be able to manipulate it with my node app... and that's where I'm stuck.

How can I add this to my app? I just started learning javascript/jquery to build this app over the last week, and all of that stuff is working fine... but adding mongoose to the mix is making me go crazy. Any help would be appreciated.