UPdated db init
Updated application init
 Use loopback