initializing db