The open action now saves to database