added destroy method to terminate redis connection
implemented PostgreSQL as datastore