added static and db