added MarshalJSON method for DatabaseReq