preload database to singleton