added persistence to loopback