Creating singleton for db