Changed db vars to rw for user access