moving db to static variables