init db automaticall