Added partial non-admin support

It wont crash when accessing a database other than /admin with only r/w
rights