loading properties from database and injecting to bean