Move database to shared code.