Managed to get memory stored database working.