Messing around with database singleton.