Changed db to load from resource path and added check in logic before load - Oksana need to implement the result of check