Resolve error with namespace db and profileKeys
Closes #4