Set up database synced with page