Setting up the shared database