Makes UserDatabase a thread safe singleton